package com.jacky.iot;

public class CredentialsProperties {
    // pem 证书及key文件认证方式
    private String certFile;
    private String keyFile;

    // key store证书认证方式
    private String keyStoreType; // JKS、JCEKS、PKCS12、BKS、UBER
    private String keyStoreFile;
    private String keyStorePassword;
    private String keyPassword;
    private String keyAlias;

    public CredentialsProperties(String certFile,String keyFile) {
        this.certFile = certFile;
        this.keyFile = keyFile;
    }

    public CredentialsProperties(String storeType,String storeFile,String storePwd,
                                 String keyPwd,String keyAlias) {
        this.keyStoreType = storeType;
        this.keyStoreFile = storeFile;
        this.keyStorePassword = storePwd;
        this.keyPassword = keyPwd;
        this.keyAlias = keyAlias;
    }

    public String getCertFile() {
        return certFile;
    }

    public String getKeyFile() {
        return keyFile;
    }

    public String getKeyStoreType() {
        return keyStoreType;
    }

    public String getKeyStoreFile() {
        return keyStoreFile;
    }

    public String getKeyStorePassword() {
        return keyStorePassword;
    }

    public String getKeyPassword() {
        return keyPassword;
    }

    public String getKeyAlias() {
        return keyAlias;
    }
}
